
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import java.io.IOException;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by lkkjzx on 2017/4/25.
 */
public class Test {

    public  static  void main(String[] args){

        Matcher matcher=Pattern.compile("id36\":\"\\w+?\"").matcher("\"id36\":\"ewnqb\":\"id36\":\"ewnqb\"");
        if (matcher.find()){
            String s = matcher.group();
            System.out.println(s.substring(7,s.length()-1));
        }

//        String resource = "mybatisConfig.xml";
//        Reader reader = null;
//        SqlSession session = null;
//        reader = Resources.getResourceAsReader(resource);
//        SqlSessionFactory ssf = new SqlSessionFactoryBuilder().build(reader);
//        session = ssf.openSession();
//        User dataUser= session.selectOne("com.twitso.interactSpider.User.selectUser");
//        System.out.println(dataUser);
//        session.close();
//        }catch (IOException e){
//            e.printStackTrace();
//        }

    }
}
